package com.doubi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.doubi.entity.Inform;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface InformMapper extends BaseMapper<Inform> {
    //查询此评论是否@多人
    @Select("select * from inform where buid=#{buid} and informContent=#{informContent} and informTime=#{informTime} and releaseId=#{releaseId}")
    public List<Inform> getIsManyPeople(@Param("buid") Integer buid, @Param("informContent") String informContent, @Param("informTime") String informTime, @Param("releaseId") Integer releaseId);

    public int updateInforms(@Param("commentId") List<Integer> commentId);
}
